package com.larry.design.structural.decorator;

/**
 * @author larry
 * @Title: design-frame
 * @Package com.larry.design.structural.decorator
 * @Description: 装饰器  ---> 装饰的是谁
 * @date 9/1/2110:23 AM
 */
public class MeiYanDecortor implements TikTokDecorator {

    private ManTikTok manTikTok;
    public MeiYanDecortor(ManTikTok manTikTok){
        this.manTikTok = manTikTok;
    }


    /**
     * 定义的增强功能
     */
    public void enable() {
        System.out.println("my开启.....");
    }

    public void tiktok() {
        enable();

        manTikTok.tiktok();
    }
}
